#include "constants.h";

if (isServer) then {
	diag_log Format["(%1)[%2]: %3",diag_tickTime,"lingor.server.sqf","Starting Lingor map server config"];
	
	d_allmen_E = [
		["East","RU","Infantry","RU_InfSquad"] call XfGetConfigGroup,
		["East","RU","Infantry","RU_InfSection"] call XfGetConfigGroup,
		["East","RU","Infantry","RU_InfSection_AT"] call XfGetConfigGroup,
		["East","RU","Infantry","RU_InfSection_AA"] call XfGetConfigGroup,
		["East","RU","Infantry","RU_InfSection_MG"] call XfGetConfigGroup,
		["East","RU","Infantry","RU_SniperTeam"] call XfGetConfigGroup,
		["East","RU","Infantry","RUS_ReconTeam"] call XfGetConfigGroup,
		["East","RU","Infantry","MVD_AssaultTeam"] call XfGetConfigGroup,
		["East","INS","Infantry","INS_InfSquad"] call XfGetConfigGroup,
		["East","INS","Infantry","INS_InfSquad_Weapons"] call XfGetConfigGroup,
		["East","INS","Infantry","INS_InfSection_AT"] call XfGetConfigGroup,
		["East","INS","Infantry","INS_InfSection_AA"] call XfGetConfigGroup,
		["East","INS","Infantry","INS_SniperTeam"] call XfGetConfigGroup,
		["East","INS","Infantry","INS_MilitiaSquad"] call XfGetConfigGroup
	];
	d_allmen_W = [
		["West","USMC","Infantry","USMC_InfSquad"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam_MG"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam_AT"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FireTeam_Support"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_HeavyATTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_SniperTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FRTeam"] call XfGetConfigGroup,
		["West","USMC","Infantry","USMC_FRTeam_Razor"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSquad"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSquad_Weapons"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_AT"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_AA"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_MG"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_InfSection_Patrol"] call XfGetConfigGroup,
		["West","CDF","Infantry","CDF_SniperTeam"] call XfGetConfigGroup
	];
	d_allmen_G = [
		["Guerrila","GUE","Infantry","GUE_InfSquad"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfSquad_Assault"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfSquad_Weapons"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfTeam_1"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfTeam_2"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_InfTeam_AT"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_GrpInf_TeamAA"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_GrpInf_TeamSniper"] call XfGetConfigGroup,
		["Guerrila","GUE","Infantry","GUE_MilitiaSquad"] call XfGetConfigGroup
	];

	// d_specops_E = ["RUS_Soldier_TL","RUS_Soldier_GL","RUS_Soldier_Marksman","RUS_Soldier3","RUS_Soldier1","RUS_Soldier2"];
	// d_specops_W = ["FR_TL","FR_AC","FR_GL","FR_Commander","FR_AR","FR_R","FR_Corpsman","FR_Marksman","FR_Sapper","FR_Assault_R","FR_Assault_GL"];
	// d_specops_G = ["GUE_Soldier_Sab","GUE_Soldier_Scout","GUE_Soldier_Scout","GUE_Soldier_Scout"];

	// d_snipers_E = ["RU_Soldier_Marksman","RU_Soldier_AR","RUS_Soldier_Marksman","MVD_Soldier_Marksman","MVD_Soldier_Sniper","RUS_Soldier2"];
	// d_snipers_W = ["FR_Marksman","FR_R","USMC_SoldierM_Marksman","USMC_SoldierS_Sniper","USMC_SoldierS_Spotter","USMC_SoldierS_SniperH","USMC_Soldier_AR"];
	// d_snipers_G = ["GUE_Soldier_Sniper","GUE_Soldier_AR","GUE_Soldier_Scout","GUE_Woodlander2"];

	// d_veh_a_E = [
			// ["T90","T72_RU"],
			// ["BMP3","BRDM2_INS","BMP2_INS","BTR90"],
			// ["BTR90","BRDM2_INS","BRDM2_ATGM_INS"],
			// ["Ural_ZU23_INS","2S6M_Tunguska","Ural_ZU23_INS","ZSU_INS","Ural_ZU23_INS"],
			// ["GAZ_Vodnik","GAZ_Vodnik_HMG","Ural_ZU23_INS"],
			// ["UAZ_MG_INS","UAZ_AGS30_RU","UAZ_MG_INS","UAZ_AGS30_INS","UAZ_MG_INS","UAZ_SPG9_INS","UAZ_MG_INS"],
			// ["KORD","AGS_RU","DSHKM_Ins","2b14_82mm","KORD_high","Metis","DSHkM_Mini_TriPod","SPG9_Ins"],
			// ["ZU23_Ins","Igla_AA_pod_East","ZU23_CDF"],
			// ["D30_RU","GRAD_RU"],
			// ["KamazRefuel"],
			// ["KamazRepair"],
			// ["KamazReammo"]
		// ];

	// d_veh_a_W = [
			// ["M1A1","M1A2_TUSK_MG","T72_CDF"],
			// ["LAV25","BRDM2_CDF","BRDM2_ATGM_CDF"],
			// ["AAV","BMP2_CDF"],
			// ["HMMWV_Avenger","ZSU_CDF"],
			// ["HMMWV_M2","HMMWV_MK19","HMMWV_TOW","UAZ_AGS30_CDF"],
			// ["HMMWV_M2","HMMWV_Armored","HMMWV_TOW","HMMWV_M2","UAZ_AGS30_CDF","HMMWV_M2","UAZ_MG_CDF"],
			// ["M2StaticMG","MK19_TriPod","M2HD_mini_TriPod","M252","M2StaticMG","TOW_TriPod","M2StaticMG"],
			// ["Stinger_Pod"],
			// ["M119","GRAD_CDF"],
			// ["MtvrRefuel"],
			// ["MtvrRepair"],
			// ["MtvrReammo"]
	// ];
	// d_veh_a_G = [
		// ["T34","T72_Gue","T34"],
		// ["BMP2_Gue"],
		// ["BRDM2_Gue"],
		// ["Ural_ZU23_Gue"],
		// ["Offroad_DSHKM_Gue","Offroad_SPG9_Gue"],
		// ["Offroad_DSHKM_Gue","Offroad_SPG9_Gue","Offroad_DSHKM_Gue"],
		// ["DSHKM_Gue","2b14_82mm_GUE","DSHKM_Gue","SPG9_Gue","DSHKM_Gue"],
		// ["ZU23_Gue"],
		// ["ZU23_Gue"],
		// ["V3S_Gue"],
		// ["V3S_Gue"],
		// ["V3S_Gue"]
	// ];

	// d_civilian_E = ["RU_Villager1","RU_SchoolTeacher","RU_Villager3","RU_Woodlander2","RU_Worker1","RU_Worker3","RU_Villager2","Citizen1","Profiteer3","Profiteer4","Damsel1","Farmwife1","HouseWife2"];
	// d_civilian_W = ["RU_Villager1","RU_SchoolTeacher","RU_Villager3","RU_Woodlander2","RU_Worker1","RU_Worker3","RU_Villager2","Citizen1","Profiteer3","Profiteer4","Damsel1","Farmwife1","HouseWife2"];
	// d_civilian_G = ["RU_Villager1","RU_SchoolTeacher","RU_Villager3","RU_Woodlander2","RU_Worker1","RU_Worker3","RU_Villager2","Citizen1","Profiteer3","Profiteer4","Damsel1","Farmwife1","HouseWife2"];

	// If you want to change from the default.
	// if (isnil "d_airki_attack_plane") then {
		// // type of enemy plane that will fly over the main target
		// d_airki_attack_plane = switch (d_enemy_side) do {
			// case "EAST": {["Su34","Su39"]};
			// case "WEST": {["A10","AV8B2","AV8B","F35B"]};
			// default {[]};
		// };
	// };	

	// If you want to change from the default.
	// if (isnil "d_airki_attack_chopper") then {
		// // type of enemy chopper that will fly over the main target
		// d_airki_attack_chopper = switch (d_enemy_side) do {
			// case "EAST": {["Ka52","Ka52Black","Mi24_P","Mi24_V"]};
			// case "WEST": {["AH1Z","AH64D","ACE_AH1W_AGM_W","ACE_AH1W_AGM_D"]};
			// default {[]};
		// };
	// };
	
	// If you want to change from the default
	// if (isnil "d_transport_chopper") then {
		// d_transport_chopper = switch (d_enemy_side) do {
			// case "EAST": {["Mi17_rockets_RU"]};
			// case "WEST": {["MH60S"]};
			// case "GUER": {["Mi17_Civilian"]};
		// };
	// };
	
	// If you want to change from the default
	// if (isnil "d_light_attack_chopper") then {
		// d_light_attack_chopper = switch (d_enemy_side) do {
			// case "EAST": {["Mi17_Ins"]};
			// case "WEST": {["UH1Y"]};
			// default {[]};
		// };
	// };

	// If you want to change from the default
	// if (isnil "x_drop_aircraft") then {
		// x_drop_aircraft = switch (d_own_side) do {
			// case "EAST": {"Mi17_rockets_RU"};
			// case "WEST": {"MH60S"};
			// case "GUER": {"Mi17_Civilian"};
		// };
	// };
	
	// If you want to change from the default
	// if (isnil "x_taxi_aircraft") then {
		// x_taxi_aircraft = switch (d_own_side) do {
			// case "EAST": {["Mi17_rockets_RU"]};
			// case "WEST": {["MH60S"]};
			// case "GUER": {["Mi17_Civilian"]};
		// };
	// };
	
	x_drop_fly_height = 120;
};
